home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group01b.txt
/
000070_icon-group-sender_Wed Jun 6 12:36:05 2001.msg
< prev
next >
Wrap
Internet Message Format
|
2002-01-03
|
1KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id f56JZvE15012
for icon-group-addresses; Wed, 6 Jun 2001 12:35:57 -0700 (MST)
Message-Id: <200106061935.f56JZvE15012@baskerville.CS.Arizona.EDU>
Date: Wed, 6 Jun 2001 11:34:53 -0700 (MST)
From: Gregg Townsend <gmt@cs.arizona.edu>
To: icon-group@cs.arizona.edu, jsampson@indexes.u-net.com
Subject: Re: [Icon-Group] Funny result with strings
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 845
> From icon-group-sender@CS.Arizona.EDU Tue Jun 5 08:34:09 2001
>
> I have been trying out split.icn, a procedure contributed by Hamish Lawson
> in 1996, which converts a string into a list using a cset of characters as
> delimiter.
I'm not acquainted with that code, so I can't answer questions about it.
You might check out the Icon program library; the procedure words(),
in the "strings" package, provides a similar facility:
http://www.cs.arizona.edu/icon/library/procs/strings.htm
Words() generates its results, but you could use it to build a list
if that's what you need:
every put(L := [], words(s))
---------------------------------------------------------------------------
Gregg Townsend Staff Scientist The University of Arizona
gmt@cs.arizona.edu Computer Science Tucson, Arizona, USA